package com.chanyachting.emall.domain;

import com.chanyachting.emall.domain.base.BaseMember;
import com.chanyachting.emall.form.MemberForm;

/**
 * This is the object class that relates to the member table.
 * Any customizations belong here.
 */
public class Member extends BaseMember {

/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/*[CONSTRUCTOR MARKER BEGIN]*/
	public Member () {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public Member (java.lang.Integer _id) {
		super(_id);
	}

	/**
	 * Constructor for required fields
	 */
	public Member (
		java.lang.Integer _id,
		java.lang.String _account) {

		super (
			_id,
			_account);
	}

/*[CONSTRUCTOR MARKER END]*/
	
	public boolean isCompanyMember(){
		
		if(this.getMemberType()!=null && this.getMemberType().equals("01")) return true;
		
		return false;
	}
	
	
	
}